<div id="personModal" class="modal fade" role="dialog" aria-hidden="true">
	<div class="modal-dialog" >
		<div class="modal-content">
			<div class="modal-header">
			  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			  <h3>修改个人资料</h3>
			</div>
			<div class="modal-body" style="display: inline-block;">
			  <div id="info_error" class="alert alert-danger" style="display: none;">
			  </div>
			  <form id="admin_infoForm" role="form" method="post" name="infoForm">
			  	<div class="col-xs-4">
			  		<div class="form-group col-xs-12">
	                    <label>头像：</label>
	                    <div>
							
						</div>
						<div id="select_headpic">选择图片</div>
	                </div>
			  	</div>
			  	<div class="col-xs-8">
			  		<div class="form-group col-xs-12">
	                    <label>姓名：</label>
	                    <input type="text" name="user_name" class="form-control" id="user_name_header" placeholder="输入 ..." check-type="required" value="<?php if (isset($_SESSION['USER_NAME'])&&$_SESSION['USER_NAME']!="")echo $_SESSION['USER_NAME'];?>"/>
	                </div>
	                <div class="form-group col-xs-12">
	                    <label>联系电话：</label>
	                    <input type="text" name="user_phone" class="form-control" id="user_phone_header" placeholder="输入 ..." check-type="required" value="<?php if (isset($_SESSION['USER_PHONE'])&&$_SESSION['USER_PHONE']!="")echo $_SESSION['USER_PHONE'];?>"/>
	                </div>
			  	</div>
			  </form>
			</div>
			<div class="modal-footer">
			  <a onclick="updateAdminInfo()" href="#" class="btn btn-danger" >保存</a>
			  <a href="#" class="btn btn-info" data-dismiss="modal" aria-hidden="true">取消</a>
			</div>
		</div>
	</div>
</div>
<div id="pwdModal" class="modal fade" role="dialog" aria-hidden="true">
	<div class="modal-dialog" >
		<div class="modal-content">
			<div class="modal-header">
			  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			  <h3>修改密码</h3>
			</div>
			<div class="modal-body" style="display: inline-block;">
			  <div id="error" class="alert alert-danger" style="display: none;">
			  </div>
			  <form id="infoForm" role="form" method="post" name="infoForm">
			  	<div class="form-group col-xs-12">
                    <label>当前密码：</label>
                    <input type="password" name="prepassword" class="form-control" id="prepassword" placeholder="输入 ..." check-type="required"/>
                </div>
                <div class="form-group col-xs-12">
                    <label>新密码：</label>
                    <input type="password" name="password1" class="form-control" id="password1" placeholder="输入 ..." check-type="required"/>
                </div>
                <div class="form-group col-xs-12">
                    <label>确认新密码：</label>
                    <input type="password" name="password2" class="form-control" id="password2" placeholder="输入 ..." check-type="required" match="password1"/>
                </div>
			  </form>
			</div>
			<div class="modal-footer">
			  <a onclick="updatePwd()" href="#" class="btn btn-danger" >确定</a>
			  <a href="#" class="btn btn-info" data-dismiss="modal" aria-hidden="true">取消</a>
			</div>
		</div>
	</div>
</div>
<div id="loadModal" class="modal fade" role="dialog" aria-hidden="true" data-backdrop='static'>
	<div class="modal-dialog" >
		<div class="loading-body">
			<img alt="" src="<?php echo base_url()?>public/images/loading.gif"><br><span id="loadHtml"></span>
		</div>
	</div>
</div>
<div id="uploadModal" class="modal fade" role="dialog" aria-hidden="true"></div>
<div id="staffModal" class="modal fade" role="dialog" aria-hidden="true"></div>
<script type="text/javascript">
function open_page(base_url,query_string){
	var page_num = $('#per_page').val();
	window.location.href=base_url+'/'+page_num+query_string;
}
</script>